package main

import (
	"fmt"
	"github.com/json-iterator/go"
)

func main(){
	m := make(map[string]interface{})
	m["name"] = "jmz"
	m["age"] = 12
	m["sex"] = 1

	var json = jsoniter.ConfigCompatibleWithStandardLibrary
	b,err := json.Marshal(m)
	if err != nil {
		fmt.Printf("解析失败：%s\n",err)
		return
	}

	fmt.Println(string(b))

}
